import request from '@/utils/request'

// 获取菜品类别及类别
export function getShop() {
  return request({
    url: '/system/dish/appList',
    method: 'get'
  })
}

//获取空闲桌位
export function getTable() {
  return request({
    url: '/system/table/list?isFree=1&pageSize=1000',
    method: 'get'
  })
}

//提交订单
export function submitOrder(data) {
  return request({
    url: '/system/order',
	data: data,
    method: 'post'
  })
}

//支付
export function submitPay(data) {
  return request({
    url: '/system/payment',
	data: data,
    method: 'post'
  })
}
